package com.example.canteen.service.impl;

import com.example.canteen.domain.Payments;
import com.example.canteen.mapper.PaymentsMapper;
import com.example.canteen.service.PaymentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PaymentsServiceImpl implements PaymentsService {
    @Autowired
    private com.example.canteen.mapper.InventoryAdjustmentsMapper InventoryAdjustmentsMapper;



    @Override
    public List<Payments> selectAllPayments() {
        return PaymentsMapper.getAll();
    }

    @Override
    public boolean selectPaymentsById(int PaymentID) {
        return PaymentsMapper.selectById(PaymentID) != null;
    }


}